/*
 * Copyright (C) 2003 Christopher Stawarz <cstawarz@cfa.harvard.edu>
 *
 * This file is part of SLglade.
 *
 * SLglade is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * SLglade is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with SLglade; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */


/* This is executed at the very end of init_glade_module_ns().  It uses
 * SLns_load_string() to define module functions that are much easier to
 * write in S-Lang than in C. */

if (-1 == SLns_load_string("\
define glade_xml_get_widget_prefix() { \
   variable args = __pop_args(_NARGS); \
   variable count = _glade_xml_get_widget_prefix(__push_args(args)); \
 \
   if (count == NULL)  return NULL; \
 \
   variable rtn = GtkWidget[count]; \
   variable i = 0; \
 \
   loop (count) { \
      rtn[i] = (); \
      i++; \
   } \
 \
   return rtn; \
} \
",ns_name))
   return -1;

